<SCRIPT type="text/javascript">
	var setting = {
		check: {
				enable: true,
				chkStyle: "radio",
				radioType: "all"
			},
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			//onCollapse: alert("up"),
			onExpand: function(){
				if (treeNiceScroll) {
					treeNiceScroll.resize();
				}
			},
			onClick:onClick
		},
		view: {
			showLine: false
		}
	};
	var zNodes1 =[
		{ id:"0", pId:0, name:"公共文件夹", open:true, icon:"/assets/images/icon-file-closed.png"}
		<#if dicList??>
		<#list dicList as dic>
		,{ id:"${dic.id!''}", pId:"${dic.parentid!''}", name:"${dic.name!''}", icon:"/assets/images/icon-file-closed.png"}
		</#list>
		</#if>
	];
	function onClick(event, treeId, treeNode, clickFlag) {
		$("#userList_tbody").html("<td colspan='4'>正在加载数据...</td>");
		loadURL("/${orgi}/user/report/pub/"+treeNode.id+"/reportlist.html" , $("#userList_tbody") , null)
	}	

	$(document).ready(function(){
		var ztree = $.fn.zTree.init($(document.getElementById("zTree_report_dic_LIst")), setting, zNodes1);
		//页面初始化数据，选中默认的群组，并查询出该群组下的用户
		ztree.selectNode(ztree.getNodeByParam("id", "0", null));
		
		
	});
</SCRIPT>
<div class="artCon">
	<div class="middleArt">
	<form class="form-horizontal" data-toggle="form" id="userimportForm" action="" method="post">
		<div class="artMain">
			<div class="mainCenter">
				<div class="dialogWrapper_0313">
					<table class="spliptHalf_0313">
						<tr>
							<td class="spwrap">
								<div class="lftTreeWrap setScroll">
									<div class="ztree" id="zTree_report_dic_LIst"></div>
								</div>
							</td>
							<td class="spwrapright">
								<div class="lftTreeWrap setScroll">
								
								<table class="table_style_1">
									<thead>
										<tr>
											<th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
											<th><i class="verMidWrap">名称</i><i class="tbArrow"></i></th>
											<th class="minSize"><i class="verMidWrap">目录</i><i class="tbArrow"></i></th>
										</tr>
									</thead>
									<tbody id="userList_tbody">
									<#include "/pages/manage/task/reportlist.html"/>
									</tbody>
								</table>
								
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<a href="javascript:void(0)" onclick="selectReport();" class="btnStyle1">确认</a>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
		</form>
	</div>
</div>
